@import "theme";
.btn {
  color: #000;
  background-color: #f8f8f8;
  display: inline-block;
  position: relative;
  padding: .5rem 1rem;
  text-align: center;
  white-space: nowrap;
  line-height: 1.5;
  vertical-align: middle;
  border-radius: 3px;
  border: 1px solid #ddd;
  &:focus {
    outline: 0;
  }
  &:active {
    color: rgba(0, 0, 0, 0.6);
    background-color: #dedede;
  }
  &[disabled] {
    opacity: .65;
  }
}
.btn-block {
  display: block;
  width: 100%;
}
.btn-sm {
  padding: .25rem .5rem;
}
.btn-lg {
  padding: .75rem 1.25rem;
}
.btn-secondary {
  color: #fff;
  background-color: $border-color;
  &:active {
    background-color: darken($border-color, 10%);
    border-color: darken($border-color, 10%);
    color: #fff;
  }
}
.btn-danger {
  color: #fff !important;
  background-color: $color-red;
  border-color: $color-red;
  &:active {
    background-color: darken($color-red, 10%);
    border-color: darken($color-red, 10%);
  }
}
$btn-grey-color: #c7c7c7;
.btn-grey {
  color: #fff !important;
  background-color: $btn-grey-color;
  &:active {
    background-color: darken($btn-grey-color, 10%);
    border-color: darken($btn-grey-color, 10%);
  }
}
/* button groups */
.btn-group {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
  .btn {
    position: relative;
    flex: 0 1 auto;
  }
  > .btn:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }
  > .btn:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }

  .btn + .btn {
    margin-left: -1px
  }
}
